﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace Paperless_Library
{
    [DataContract]
    public class Event
    {
        #region Atributos
        private string _EventType;
        private string _Description;
        private DateTime _DateTime;
        private string _UserName;
        private string _DocumentName;        
        #endregion

        #region Propiedades
        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string EventType
        {
            get { return _EventType; }
            set { _EventType = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public DateTime Date
        {
            get { return _DateTime; }
            set { _DateTime = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string DocumentName
        {
            get { return _DocumentName; }
            set { _DocumentName = value; }
        }
        #endregion

        #region Constructores
        /// <summary>
        /// Constructor vacío de la clase
        /// </summary>
        public Event()
        {
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="eventType"></param>
        /// <param name="description"></param>
        /// <param name="dateTime"></param>
        /// <param name="userName"></param>
        /// <param name="documentName"></param>
        public Event(string eventType, string description, DateTime dateTime, string userName, string documentName)
        {
            _EventType = eventType;
            _Description = description;
            _DateTime = dateTime;
            _UserName = userName;
            _DocumentName = documentName;
        }
        #endregion
    }
}
